import { Injectable, NestInterceptor, ExecutionContext, CallHandler, HttpException } from '@nestjs/common';
import { Observable } from 'rxjs';
import { tap } from 'rxjs/operators';
import log from '../utils/log';
import config from 'src/config';
import AesUtils from 'src/utils/aes';
import { LoggerService } from 'src/common/modules/logger/logger.service';
import { IHttpLog } from 'src/common/modules/logger/logger.types';
import { randomString } from 'src/utils';

@Injectable()
export class RequestInterceptor implements NestInterceptor {
	constructor(
		private readonly loggerService: LoggerService,
	){}
	intercept(context: any, next: CallHandler): Observable<any> {
		return next
		.handle()
		.pipe(
			tap((data) => {

			}),
		);
	}
}
